﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyChungCu_V
{
    public partial class dlgAddService : Form
    {
        public dlgAddService()
        {
            InitializeComponent();
        }
        public Guid MaDV
        {
            get { return Guid.Parse(mtxtMaDV.Text); }
        }
        public string TenDV
        {
            get { return mtxtTenDV.Text; }

        }
        public int GiaTien
        {
            get { return int.Parse(mtxtGiaTien.Text); }

        }
        public string DonVi
        {
            get { return cboDonvi.Text; }

        }

        private void btOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void mtxtMaDV_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
        {

        }
    }
}
